home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_sz / while < prev    next >
Text File  |  1995-02-18  |  532b  |  26 lines

  1. while:
  2.  
  3.     The RLaB while statement is similar to the C while statement.
  4.  
  5.     Example:
  6.  
  7.     > i=1;
  8.     > while(i<10)
  9.       {
  10.         a[i] = 1.3*i;
  11.         i++;
  12.       }
  13.     > a
  14.      a =
  15.      matrix columns 1 thru 5
  16.              1.3         2.6         3.9         5.2         6.5
  17.     
  18.      matrix columns 6 thru 9
  19.              7.8         9.1        10.4        11.7
  20.  
  21.     while(0) { "this will never be executed" }
  22.  
  23.     If the conditional evaluates to zero then the loop is not
  24.     executed, if it evaluates to anything other than zero it will
  25.     be executed until the condition is zero.
  26.